Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Conversation

@clero
Copy link
Contributor

@clero clero commented Apr 14, 2015

Avoid ParameterMgr inheritance to Element
Allows to avoid tree structure guess work

@clero clero mentioned this pull request Apr 14, 2015
@clero clero force-pushed the manager_is_not_element branch from ce012c8 to cc344d6 Compare April 15, 2015 06:54
init function is defined in Element god class
but is used only for plugins initialization
after structure and settings loading.
This patch delegate Subsystem initialization
to SystemClass which is the direct parent.

Signed-off-by: Jules Clero <julesx.clero@intel.com>
@clero clero mentioned this pull request Apr 15, 2015
@clero
Copy link
Contributor Author

clero commented Apr 17, 2015

@dawagner @krocard please review

@clero clero force-pushed the manager_is_not_element branch from cc344d6 to fd2ebe3 Compare April 24, 2015 16:41
@dawagner
Copy link
Contributor

the decrease in coverage is only related to dead getKind() methods that can't be removed yet.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coding style: missing whitespace after "+"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@dawagner
Copy link
Contributor

Please resubmit against the master branch :) ok for me after once you fix the minor coding style issue in parameter/ParameterType.cpp.

Thanks a lot, @clero.

@OznOg Please review.

@clero clero force-pushed the manager_is_not_element branch from fd2ebe3 to c080eb4 Compare April 27, 2015 07:09
OznOg and others added 2 commits April 27, 2015 09:09
The element class really looks like a god class with stuff that has
really nothing to do with its role. toString and appendTitle are good
example of stuff that should be move away from it.

This patch move those two functions into utility where they seems to
belong.

Signed-off-by: Sébastien Gonzalve <oznog@users.noreply.github.com>
Signed-off-by: Jules Clero <julesx.clero@intel.com>
SelectionCriteria class is dependant from Element class because
of the checksum calculation algorithm which is based on child
name.
In preparation of a rework, we exclude it from the structure
checksum calculation. Moreover the criterion mechanism is not
a part of the parameter-framework structure. Thus, this decision
is fair.

Signed-off-by: Jules Clero <julesx.clero@intel.com>
@clero
Copy link
Contributor Author

clero commented Apr 27, 2015

closed for master submission

@clero clero closed this Apr 27, 2015
@clero
Copy link
Contributor Author

clero commented Apr 27, 2015

@dawagner in fact maybe it can be good to send it on next branch as it already has been updated to the new log API
Let me know if you still prefer a submission on master branch.

@clero clero reopened this Apr 27, 2015
@clero
Copy link
Contributor Author

clero commented Apr 30, 2015

getKind must be removed from ParameterMgr!

@clero clero force-pushed the manager_is_not_element branch from c080eb4 to 44713bb Compare April 30, 2015 08:42
ParameterManager does not have to be a part of the Element tree.
Indeed, it is not represented in any xml file.
This patch avoids this inheritance and removes some "tricks" which
was used to forget the ParameterMgr root element.

Signed-off-by: Jules Clero <julesx.clero@intel.com>
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.14%) to 70.0% when pulling 44713bb on clero:manager_is_not_element into 0428220 on 01org:next.

dawagner added a commit that referenced this pull request Apr 30, 2015
Manager is not element

Avoid ParameterMgr inheritance to Element
Allows to avoid tree structure guess work
@dawagner dawagner merged commit 391d970 into intel:next Apr 30, 2015
@clero clero deleted the manager_is_not_element branch May 5, 2015 11:44
@dawagner dawagner added this to the Version 3 milestone Jun 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants